<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<div v-if="a >= 10">ok</div>
			<button @click="add">点击我</button>
		</div>
	</body>
	<script src="vue.js"></script>
	<script>
		const { createApp, ref } = Vue;
		const app = createApp({
			setup() {
				let a = ref(0)
				function add(){
					a.value++;
				}
				return {
					a,
					add
				}
			}
		})
		
		app.mount('#app')
	</script>
</html>